package com.ayoka.adapter;


import com.ayoka.R;
import com.ayoka.bean.CourseBean;
import com.jcp.baselibrary.brvah.BaseQuickAdapter;
import com.jcp.baselibrary.brvah.BaseViewHolder;

import java.util.List;

/**
 * Created by jinchunping on 2018/4/11.
 */

public class CourseCollectionAdapter extends BaseQuickAdapter<CourseBean, BaseViewHolder> {

    public CourseCollectionAdapter() {
        super(R.layout.item_course_collection, null);
    }

    @Override
    protected void convert(final BaseViewHolder holder, CourseBean item) {
        holder.setText(R.id.tv_course_name, item.Title)
                .setText(R.id.tv_sub_title, item.SubTitle)
                .setVisible(R.id.tv_sub_title, true);
    }
}
